package com.zhiyizhen.handheld.component.login.api;

import com.zhiyizhen.handheld.component.login.bean.CaptchaImageBean;
import com.zhiyizhen.handheld.component.login.bean.LoginBean;
import com.zhiyizhen.handheld.component.login.bean.LoginReq;
import com.zhiyizhen.handheld.net.response.ResponseData;

import io.reactivex.Observable;
import retrofit2.http.Body;
import retrofit2.http.POST;

public interface ILoginService {

    @POST("/web/login/account")
    Observable<ResponseData<LoginBean>> login(@Body LoginReq req);

    // 生成图形验证码
    @POST("/web/login/captchaImage")
    Observable<ResponseData<CaptchaImageBean>> requestCaptchaImage();

}
